]> dgit.raspbian.org Git - gnome-shell.git/commit
boxpointer: Add condition checks for -arrow-rise:0px
authorTarun Kumar Joshi <tj.joshi7@gmail.com>
Tue, 1 Oct 2013 06:53:13 +0000 (12:23 +0530)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Wed, 15 Jan 2014 17:28:31 +0000 (18:28 +0100)
commitcbceac4c8a7716252143fbcbb8a2153fda854921
treef88261760f6e55035829ef0c7f9c9dde3c84bcb0
parent297877fbe2960054b928993abcf7f1c55f1abaf6
boxpointer: Add condition checks for -arrow-rise:0px

This is done for properly drawing popup menu when arrow rise is 0 (in
case of background menu).

Normally, the menu with arrow rise set to 0 is drawn properly having
all four corners rounded. But when the source(click/arrowOrigin) is
near screen's edges, one of the corners (depending on source's position
and arrow alignment) is drawn right angled.

This happens because the rounded corners are skipped and right angled
arrow is drawn when arrow origin is close to the edges.(That's why when
arrow-rise is 0, it forms right angled corner).

So, a few condition checks are made to ensure that right angled corner
is not drawn.

https://bugzilla.gnome.org/show_bug.cgi?id=699608
js/ui/boxpointer.js